package exercise02;

import java.text.SimpleDateFormat;
import java.util.ArrayList;
import java.util.List;

public class EmployerDaoI implements EmployerDao {
    private SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd");
    public List<Employer> findEmployer() {
            List<Employer> list = new ArrayList<Employer>();
            try {//                        String       char         date                             double
                list.add(new Employer("hqj01", '男', sdf.parse("1999-10-15"), 4550.0D));
                list.add(new Employer("hqj02", '女', sdf.parse("1998-04-12"), 7850.0D));
                list.add(new Employer("hqj03", '男', sdf.parse("1989-05-17"), 9500.0D));
                list.add(new Employer("hqj04", '女', sdf.parse("2000-09-13"), 3550.0D));
                list.add(new Employer("hqj05", '男', sdf.parse("1999-12-15"), 5500.0D));
            }catch (Exception e){
                e.printStackTrace();
            }
            return list;
    }
}
